<!--
 * @Description: 
 * @Version: @1.0.0
 * @Autor: LuLu
 * @Date: 2023-06-25 11:10:20
 * @LastEditors: LuLu
 * @LastEditTime: 2023-06-28 09:40:12
-->
<template>
<div>
    <el-table
    :data="NotesList"
    border
    style="width: 100%">
    <el-table-column
      prop="sysname"
      label="修改人"
      align="center"
      width="210"
    >
    </el-table-column>
    <el-table-column
      prop="createTime"
      label="修改时间"
      align="center"
       width="210"
      >
    </el-table-column>
     <el-table-column
      prop="message"
      label="修改内容"
      align="center">
    </el-table-column>
  </el-table>
   <div class="pagination">
        <pagination
          v-show="pageTotal > 0"
          :total="pageTotal"
          :page.sync="params.pageNum"
          :limit.sync="params.pageSize"
          @pagination="getNotesList"
        />
      </div>
</div>
  
</template>

<script>
import {NotesList} from "@/api/index"
  export default {
    data() {
      return {
        pageTotal: 0,
           NotesList: [],
           params: {
        pageNum: 1,
        pageSize: 10,
        
      },
        
      }
    },
    mounted(){
          // 获取小记列表
    this.getNotesList();
    },
    methods:{
        // 小记
    async getNotesList() {
      let res = await NotesList(this.params);
      console.log(res);
      if (res.code == 200) {
            this.NotesList = res.rows;
            this.pageTotal = res.total;
      }
    },
    }
  }
</script>